﻿@model IEnumerable<dynamic>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout3Columns.cshtml";
}
@section Scripts
{
    <script src="@Url.Content("~/Scripts/nivo.slider.js")" type="text/javascript"></script>
}
@*Slideshow banner*@
@Html.Action("SlideShow", "Module")
@*/Slideshow banner*@
<div id="featured_products">
    <h4>
        <em><em>Sản phẩm</em></em> mới</h4>
    <div class="block_content product_list">
        <ul>
            @foreach (var item in Model)
            { 
                <li class="ajax_block_product"><a title="@item.Description" href="/@item.Category/@item.PageUrl/@(item.ProductId).html"
                class="product_image">
                    <img alt="@Html.Truncate((string)item.Name, 20)" src="@Html.UploadPath("Products")140x140_@(item.AvatarImage)" onError="this.src='/Content/images/error.jpg';"/></a>
                    <div>
                        <h5>
                            <a title="@item.Description" href="/@item.Category/@item.PageUrl/@(item.ProductId).html"
                            class="product_link">@Html.Truncate((string)item.Name, 20)</a></h5>
                        <p class="product_desc">
                            @Html.Truncate((string)item.Description, 100)</p>
                        @*<span class="price">@string.Format("{0:c0}", item.Price)</span> *@<a title="Xem chi tiết" href="/@item.Category/@item.PageUrl/@(item.ProductId).html" 
                        class="button">Chi tiết</a>
                    </div>
                </li>
            }
        </ul>
    </div>
</div>
